import os
ROOT_URLCONF = 'whatyou.urls'  # Replace 'project.urls' with just 'urls'

if os.environ.get("SERVER_SOFTWARE", "").startswith("Devel"):
    ENVIRONMENT = "local"
elif os.environ.get("SERVER_SOFTWARE", "").startswith("Goog"):
    ENVIRONMENT = "google"
else:
    ENVIRONMENT ="unknown"

DEBUG = (ENVIRONMENT == "local")
TEMPLATE_DEBUG = (ENVIRONMENT == "local")

TIME_ZONE = 'Europe/London'

MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.middleware.doc.XViewMiddleware',
    'whatyou.middleware.errorpages.NeedsUserObject',
)

INSTALLED_APPS = (
    'django.contrib.contenttypes',
    'django.contrib.sites',
    'django.contrib.humanize',
    'whatyou.main',
)

ROOT_PATH = os.path.dirname(__file__)
TEMPLATE_DIRS = (
    ROOT_PATH + '/templates',
)